<#macro paginate currentPage totalPage actionUrl urlParas="">
<#if totalPage&gt;0>
<nav class="pagination" role="navigation">
    <#if currentPage&gt;1>
    <a class="newer-posts" href="${actionUrl}#{currentPage - 1}${urlParas!}"><i class="fa fa-angle-left"></i></a>
    </#if>
    <span class="page-number">第 #{currentPage} 页 ⁄ 共 #{totalPage} 页</span>
    <#if currentPage&lt;totalPage>
    <a class="older-posts" href="${actionUrl}#{currentPage + 1}${urlParas!}"><i class="fa fa-angle-right"></i></a>
    </#if>
</nav>
</#if>
</#macro>